home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / scroll2a / scroll.frm < prev    next >
Text File  |  1999-09-18  |  3KB  |  92 lines

  1. VERSION 5.00
  2. Begin VB.Form Form1 
  3.    AutoRedraw      =   -1  'True
  4.    BackColor       =   &H80000012&
  5.    Caption         =   "Scroll by Scott Wellbrock"
  6.    ClientHeight    =   4665
  7.    ClientLeft      =   60
  8.    ClientTop       =   345
  9.    ClientWidth     =   5505
  10.    ClipControls    =   0   'False
  11.    LinkTopic       =   "Form1"
  12.    ScaleHeight     =   4665
  13.    ScaleWidth      =   5505
  14.    StartUpPosition =   2  'CenterScreen
  15.    Begin VB.CommandButton Command3 
  16.       Caption         =   "Diagonal"
  17.       Height          =   375
  18.       Left            =   120
  19.       TabIndex        =   2
  20.       Top             =   4080
  21.       Width           =   1095
  22.    End
  23.    Begin VB.Timer Timer2 
  24.       Enabled         =   0   'False
  25.       Interval        =   1
  26.       Left            =   120
  27.       Top             =   3240
  28.    End
  29.    Begin VB.CommandButton Command1 
  30.       Caption         =   "Switch"
  31.       Height          =   375
  32.       Left            =   120
  33.       TabIndex        =   1
  34.       Top             =   3720
  35.       Width           =   1095
  36.    End
  37.    Begin VB.Timer Timer1 
  38.       Interval        =   1
  39.       Left            =   600
  40.       Top             =   3240
  41.    End
  42.    Begin VB.Label Label1 
  43.       BackStyle       =   0  'Transparent
  44.       Caption         =   "Scott Wellbrock"
  45.       BeginProperty Font 
  46.          Name            =   "MS Sans Serif"
  47.          Size            =   12
  48.          Charset         =   0
  49.          Weight          =   700
  50.          Underline       =   0   'False
  51.          Italic          =   0   'False
  52.          Strikethrough   =   0   'False
  53.       EndProperty
  54.       ForeColor       =   &H0000FF00&
  55.       Height          =   375
  56.       Left            =   1320
  57.       TabIndex        =   0
  58.       Top             =   0
  59.       Width           =   2415
  60.    End
  61. End
  62. Attribute VB_Name = "Form1"
  63. Attribute VB_GlobalNameSpace = False
  64. Attribute VB_Creatable = False
  65. Attribute VB_PredeclaredId = True
  66. Attribute VB_Exposed = False
  67. Private Sub Command3_Click()
  68. Timer1.Enabled = True
  69. Timer2.Enabled = True
  70. End Sub
  71. Private Sub Command1_Click()
  72. If Timer1.Enabled = True Then
  73. Timer1.Enabled = False
  74. Timer2.Enabled = True
  75. Command1.Caption = "Vertical"
  76. Else: Timer1.Enabled = True
  77. Command1.Caption = "Horizontal"
  78. Timer2.Enabled = False
  79. End If
  80. End Sub
  81. Private Sub Form_Load()
  82. Label1.Move -2300, 0
  83. End Sub
  84. Private Sub Timer1_Timer()
  85. Label1.Left = Label1.Left + 20
  86. If Label1.Left > Form1.Width Then Label1.Left = -2300
  87. End Sub
  88. Private Sub Timer2_Timer()
  89. Label1.Top = Label1.Top + 20
  90. If Label1.Top > Form1.Height Then Label1.Top = -10
  91. End Sub
  92.